package com.iven.xie.designpattern.decorator;

/**
 * 扩展了 ShapeDecorator 类的实体装饰类
 *
 * @author xiezhendong
 * @date 2021/7/30
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape) {
        System.out.println("Border Color: Red");
    }
}
